﻿<html>
<head></head>
<body>

<p>Hello!</p>
<input type="button" onclick="loadurl()" value="跳转" style="height:30px;width:100px"/>
<input type="button" onclick="showAlert()" value="警告框" style="height:30px;width:100px"/>
<input type="button" onclick="showConfirm()" value="确定取消" style="height:30px;width:100px"/>
<input type="button" onclick="showPrompt()" value="打招呼" style="height:30px;width:100px"/>

</body>
<script type="text/javascript">
function loadurl(){
document.location = "js://webview?arg1=1111&arg2=2222";
<!--document.location = "http://www.baidu.com";-->
}

function showAlert(){
alert("js://jumpActivityB?id=12345")
}

function showConfirm(){
var res = confirm("请选择");
if (res == true){
document.write("你点击了确定");
}else{
document.write("你点击了取消");
}
}

function showPrompt(){
var name = prompt("js://getName");
if (name != null && name != ""){
document.write("Hello" + name);
}
}


</script>
</html>
